package fr.afcepf.atod18.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@NamedQuery(name="User.findUserByName", query="select c from Customer c where c.name = :name")
public class Customer implements Serializable{
     
    public static final String FIND_BY_NAME = "User.findUserByName";
    
    private static final long serialVersionUID = 1L;

    @Id 
    @GeneratedValue
    private int id;
     
    private String name;
    private String surname;
    
       
    public Customer() {
        super();
        // TODO Auto-generated constructor stub
    }

    public Customer(String paramName, String paramSurname) {
        super();
        name = paramName;
        surname = paramSurname;
    }
    
    /**
     * @return the id
     */
    public int getId() {
        return id;
    }
    /**
     * @param paramId the id to set
     */
    public void setId(int paramId) {
        id = paramId;
    }
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }
    /**
     * @param paramName the name to set
     */
    public void setName(String paramName) {
        name = paramName;
    }
    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }
    /**
     * @param paramSurname the surname to set
     */
    public void setSurname(String paramSurname) {
        surname = paramSurname;
    }
    /**
     * @return the serialversionuid
     */
    public static long getSerialversionuid() {
        return serialVersionUID;
    }
}